program Project1;

{$APPTYPE CONSOLE}
{$R+,Q+}

uses
  SysUtils;

const
  eps = 1e-10;

var
  n, i : integer;
  n0 : int64;
  x, y : extended;

begin
  reset(input, 'input.txt');
  rewrite(output, 'output.txt');

  n0 := 0;

  read(n);
  for i := 1 to n do begin
    x := 2 * random;
    y := 2 * random;
    if (x - 1) * (x - 1) + (y - 1) * (y - 1) <= 1 then
      inc(n0);
    if n0 mod 100000 = 1 then
      writeln(4 * n0 / i:0:16);
  end;

end.
 